package homework26;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class DataDisplay {
    public void display(String encryptStr, String dataNameDes){
        System.out.println("显示数据，，，");
        try {
            FileOutputStream fileOutputStream = new FileOutputStream(dataNameDes);
            fileOutputStream.write(encryptStr.getBytes());
            fileOutputStream.close();
        } catch (FileNotFoundException e) {
            System.out.println("数据不存在。。。");
        } catch (IOException e) {
            System.out.println("数据操作错误...");
        }
    }
}
